package com.qcu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qcu.entity.AppointmentTemp;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author MyComputer
* @description 针对表【appointment_temp】的数据库操作Mapper
* @createDate 2025-02-11 16:54:34
* @Entity com.qcu.entity.AppointmentTemp
*/
public interface AppointmentTempMapper extends BaseMapper<AppointmentTemp> {

    @Select("select distinct(s.email) from appointment_temp as a \n" +
            "left join staff_account as s on a.doctor_id = s.staff_id")
    List<String> getEmailOfDoctor();
}




